package cms

import (
	v1 "wave-admin/controller/v1"
	"wave-admin/middleware"

	"github.com/gin-gonic/gin"
)

type BlogRouter struct{}

func (s *TagRouter) InitBlogRouter(Router *gin.RouterGroup) {
	blogRouterWithoutRecord := Router.Group("/blog")
	blogRouter := Router.Group("/blog").Use(middleware.Record())
	blogApi := v1.ApiGroupApp.CmsApiGroup.BlogApi
	{
		blogRouter.POST("/blog", blogApi.BlogConfigSave)
		blogRouter.POST("/upload", blogApi.BlogUpload)
	}
	{
		blogRouterWithoutRecord.GET("/blog", blogApi.BlogConfig)
	}
}
